package thread.basepackage.t0;

/**
 * @author cuihao
 * @date 2017/12/8
 */
public class MyThread extends Thread {
    @Override
    public void run() {
        try {
            System.out.println(Thread.currentThread().getName() + " begin " + System.currentTimeMillis());
            System.out.println(Thread.currentThread().getName() + " 线程接下来休眠3秒");
            Thread.sleep(3000);
            System.out.println(Thread.currentThread().getName() + " end " + System.currentTimeMillis());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
